import { request } from '../../libs/request'

export default {
	
	//创建用户订单信息
	createUserOrderInfo: (data) => {
		return request.post('/order/createUserOrderInfo', data)
	},
	
	//获取用户的订单列表信息
	userOrderInfo: (data) => {
		request request.get('/order/getUserOrderInfo', data)
	},
	
	//获取用户的订单详细信息（包括商品）
	userOrderDetail: (data) => {
		request request.get('/order/getUserOrderDetailById', data)
	},
	
	//为订单付款
	paymentForOrder: (data) => {
		request request.post('/order/paymentForOrder', data)
	},
	
	//取消订单
	cancelOrder: (data) => {
		request request.post('/order/cancelOrder', data)
	},
	
	//申请退款
	applyOrderRefund: (data) => {
		request request.post('/order/applyOrderRefund', data)
	}
	
}